import config from '../config/config';
import request from '../utils/request';

let service = {};


// 等待召唤
service.showRecallFriend = (param, cb) => {
  param = param || {};

  let requestUrl = config.api.showRecallFriend;
  request({
    url: requestUrl,
    data: param,
    method: 'GET',
    success: res => {
      cb(res);
    },
    fail: res => {
      // cb(res);
    }
  });
}
//召唤成功
service.successRecallFriend = (param, cb) => {
  param = param || {};

  let requestUrl = config.api.successRecallFriend;
  request({
    url: requestUrl,
    data: param,
    method: 'GET',
    success: res => {
      cb(res);
    },
    fail: res => {
      // cb(res);
    }
  });
}

module.exports = service;